package com.myfun;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringApplication {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AnnotationConfig.class);
		UserService bean = ac.getBean(UserService.class);
		System.out.println(bean.getName());
	}
}
